package com.zelix;

import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import javax.swing.*;

public class u1 extends JComboBox
        implements ItemListener, pz {

    private DefaultComboBoxModel a;
    private static String z[];

    public u1(int i, qz aqz[]) {
        a(i, aqz);
    }

    public void a(int i, qz aqz[]) {
        a = new DefaultComboBoxModel();
        if (aqz != null && aqz.length != 0) {
            for (qz anAqz : aqz) {
                a.addElement(anAqz);
            }
        } else {
            a.addElement(new rz());
        }
        setModel(a);
        setSelectedIndex(i);
        addItemListener(this);
        setToolTipText(z[0]);
    }

    public void itemStateChanged(ItemEvent itemevent) {
        if (itemevent.getStateChange() == 1) {
            qz qz1 = (qz) getSelectedItem();
            firePropertyChange(z[1], null, qz1);
        }
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x61;
                    break;
                case 1:
                    key = 21;
                    break;
                case 2:
                    key = 21;
                    break;
                case 3:
                    key = 76;
                    break;
                default:
                    key = 108;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static {
        String as[];
        as = new String[2];
        as[0] = z("'|y)L\025le)\037Aazl\b\bfe \r\030".toCharArray());
        as[1] = z("\007|y)*\bya)\036\"}t\"\013\004q".toCharArray());
        z = as;

    }
}